package com.example.zzj.ziwuyundemo.entity;

/**
 * Created by zzj on 2016/12/1.
 */

public class LoginEntity {


    /**
     * test : {"isNewRecord":true}
     * isLogin : success
     * user : {"id":"141767fad30d470f928e64b30858712c","isNewRecord":false,"createDate":"2016-11-11 15:38:39","updateDate":"2016-12-02 11:53:09","loginName":"GJT","no":"hr","name":"FAS","email":"**********@qq.com","phone":"15200000000","mobile":"13965656500","loginIp":"0:0:0:0:0:0:0:1","loginDate":"2016-12-08 14:53:21","loginFlag":"1","oldLoginIp":"0:0:0:0:0:0:0:1","oldLoginDate":"2016-12-08 14:53:21","roleNames":"","admin":false}
     * username : GJT
     * password : admin
     * mobile : true
     * exception :
     * rememberMe : false
     * photo :
     * message :
     */

    private TestBean test;
    private String isLogin;
    private UserBean user;
    private String username;
    private String password;
    private boolean mobile;
    private String exception;
    private boolean rememberMe;
    private String photo;
    private String message;

    public TestBean getTest() {
        return test;
    }

    public void setTest(TestBean test) {
        this.test = test;
    }

    public String getIsLogin() {
        return isLogin;
    }

    public void setIsLogin(String isLogin) {
        this.isLogin = isLogin;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isMobile() {
        return mobile;
    }

    public void setMobile(boolean mobile) {
        this.mobile = mobile;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class TestBean {
        /**
         * isNewRecord : true
         */

        private boolean isNewRecord;

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }
    }

    public static class UserBean {
        /**
         * id : 141767fad30d470f928e64b30858712c
         * isNewRecord : false
         * createDate : 2016-11-11 15:38:39
         * updateDate : 2016-12-02 11:53:09
         * loginName : GJT
         * no : hr
         * name : FAS
         * email : **********@qq.com
         * phone : 15200000000
         * mobile : 13965656500
         * loginIp : 0:0:0:0:0:0:0:1
         * loginDate : 2016-12-08 14:53:21
         * loginFlag : 1
         * oldLoginIp : 0:0:0:0:0:0:0:1
         * oldLoginDate : 2016-12-08 14:53:21
         * roleNames :
         * admin : false
         */

        private String id;
        private boolean isNewRecord;
        private String createDate;
        private String updateDate;
        private String loginName;
        private String no;
        private String name;
        private String email;
        private String phone;
        private String mobile;
        private String loginIp;
        private String loginDate;
        private String loginFlag;
        private String oldLoginIp;
        private String oldLoginDate;
        private String roleNames;
        private boolean admin;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(String updateDate) {
            this.updateDate = updateDate;
        }

        public String getLoginName() {
            return loginName;
        }

        public void setLoginName(String loginName) {
            this.loginName = loginName;
        }

        public String getNo() {
            return no;
        }

        public void setNo(String no) {
            this.no = no;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getLoginIp() {
            return loginIp;
        }

        public void setLoginIp(String loginIp) {
            this.loginIp = loginIp;
        }

        public String getLoginDate() {
            return loginDate;
        }

        public void setLoginDate(String loginDate) {
            this.loginDate = loginDate;
        }

        public String getLoginFlag() {
            return loginFlag;
        }

        public void setLoginFlag(String loginFlag) {
            this.loginFlag = loginFlag;
        }

        public String getOldLoginIp() {
            return oldLoginIp;
        }

        public void setOldLoginIp(String oldLoginIp) {
            this.oldLoginIp = oldLoginIp;
        }

        public String getOldLoginDate() {
            return oldLoginDate;
        }

        public void setOldLoginDate(String oldLoginDate) {
            this.oldLoginDate = oldLoginDate;
        }

        public String getRoleNames() {
            return roleNames;
        }

        public void setRoleNames(String roleNames) {
            this.roleNames = roleNames;
        }

        public boolean isAdmin() {
            return admin;
        }

        public void setAdmin(boolean admin) {
            this.admin = admin;
        }
    }
}
